package com.specialized.orders.common.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.specialized.common.core.annotation.Excel;
import com.specialized.common.core.web.domain.BaseEntity;

/**
 * 实时订单对象 real_time
 *
 * @author djh
 * @date 2024-07-23
 */
public class RealTime extends BaseEntity {

private static final long serialVersionUID=1L;

    /** 实时单id */
    private Long realtimeId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户手机号 */
    @Excel(name = "用户手机号")
    private String userTel;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderCard;

    /** 始发地 */
    @Excel(name = "始发地")
    private String startPoint;

    /** 始发地经度 */
    @Excel(name = "始发地经度")
    private String startPointLongitude;

    /** 始发地纬度 */
    @Excel(name = "始发地纬度")
    private String startPointLatitude;

    /** 目的地 */
    @Excel(name = "目的地")
    private String destination;

    /** 目的地经度 */
    @Excel(name = "目的地经度")
    private String destinationLongitude;

    /** 目的地纬度 */
    @Excel(name = "目的地纬度")
    private String destinationLatitude;

    /** 距离 */
    @Excel(name = "距离")
    private Long distance;

    /** 接单司机id */
    @Excel(name = "接单司机id")
    private Long driverId;

    /** 接单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "接单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 预估价格 */
    @Excel(name = "预估价格")
    private BigDecimal predictPrice;

    /** 实际价格 */
    @Excel(name = "实际价格")
    private BigDecimal realPrice;

    /** 订单状态1：待接单2：已接单3：已上车4：待支付5：已支付6；已结束7：待评价 */
    @Excel(name = "订单状态1：待接单2：已接单3：已上车4：待支付5：已支付6；已结束7：待评价")
    private Long orderStatus;


    public void setRealtimeId(Long realtimeId)
            {
            this.realtimeId = realtimeId;
            }

    public Long getRealtimeId()
            {
            return realtimeId;
            }
    public void setUserId(Long userId)
            {
            this.userId = userId;
            }

    public Long getUserId()
            {
            return userId;
            }
    public void setUserTel(String userTel)
            {
            this.userTel = userTel;
            }

    public String getUserTel()
            {
            return userTel;
            }
    public void setOrderCard(String orderCard)
            {
            this.orderCard = orderCard;
            }

    public String getOrderCard()
            {
            return orderCard;
            }
    public void setStartPoint(String startPoint)
            {
            this.startPoint = startPoint;
            }

    public String getStartPoint()
            {
            return startPoint;
            }
    public void setStartPointLongitude(String startPointLongitude)
            {
            this.startPointLongitude = startPointLongitude;
            }

    public String getStartPointLongitude()
            {
            return startPointLongitude;
            }
    public void setStartPointLatitude(String startPointLatitude)
            {
            this.startPointLatitude = startPointLatitude;
            }

    public String getStartPointLatitude()
            {
            return startPointLatitude;
            }
    public void setDestination(String destination)
            {
            this.destination = destination;
            }

    public String getDestination()
            {
            return destination;
            }
    public void setDestinationLongitude(String destinationLongitude)
            {
            this.destinationLongitude = destinationLongitude;
            }

    public String getDestinationLongitude()
            {
            return destinationLongitude;
            }
    public void setDestinationLatitude(String destinationLatitude)
            {
            this.destinationLatitude = destinationLatitude;
            }

    public String getDestinationLatitude()
            {
            return destinationLatitude;
            }
    public void setDistance(Long distance)
            {
            this.distance = distance;
            }

    public Long getDistance()
            {
            return distance;
            }
    public void setDriverId(Long driverId)
            {
            this.driverId = driverId;
            }

    public Long getDriverId()
            {
            return driverId;
            }
    public void setStartTime(Date startTime)
            {
            this.startTime = startTime;
            }

    public Date getStartTime()
            {
            return startTime;
            }
    public void setEndTime(Date endTime)
            {
            this.endTime = endTime;
            }

    public Date getEndTime()
            {
            return endTime;
            }
    public void setPredictPrice(BigDecimal predictPrice)
            {
            this.predictPrice = predictPrice;
            }

    public BigDecimal getPredictPrice()
            {
            return predictPrice;
            }
    public void setRealPrice(BigDecimal realPrice)
            {
            this.realPrice = realPrice;
            }

    public BigDecimal getRealPrice()
            {
            return realPrice;
            }
    public void setOrderStatus(Long orderStatus)
            {
            this.orderStatus = orderStatus;
            }

    public Long getOrderStatus()
            {
            return orderStatus;
            }

@Override
public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("realtimeId",getRealtimeId())
            .append("userId",getUserId())
            .append("userTel",getUserTel())
            .append("orderCard",getOrderCard())
            .append("startPoint",getStartPoint())
            .append("startPointLongitude",getStartPointLongitude())
            .append("startPointLatitude",getStartPointLatitude())
            .append("destination",getDestination())
            .append("destinationLongitude",getDestinationLongitude())
            .append("destinationLatitude",getDestinationLatitude())
            .append("distance",getDistance())
            .append("createTime",getCreateTime())
            .append("driverId",getDriverId())
            .append("startTime",getStartTime())
            .append("endTime",getEndTime())
            .append("predictPrice",getPredictPrice())
            .append("realPrice",getRealPrice())
            .append("orderStatus",getOrderStatus())
        .toString();
    }



}
